<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <style>
      .father {
        width: 300px;
        height: 100px;
        border: 1px solid black;
        position: relative;
      }
      .son1 {
        width: 50px;
        height: 50px;
        background-color: red;
        position: absolute;
        top: 0px;
        left: 0px;
      }
      .son2 {
        width: 50px;
        height: 50px;
        background-color: blue;
        position: absolute;
        bottom: 0px;
        right: 0px;
      }
    </style>
    <div class="father">
      <div class="son1">ONE</div>
      <div class="son2">TWO</div>
    </div>
    <script type="module">
      import { add } from "./script/1.js";
      add(1, 2);
      document.querySelector("div").onclick = function () {
        add(1, 2);
      };
    </script>
  </body>
</html>
